/*
 * Copyright (C) 2008-2011 CBDP Consortium
 * 
 * All rights reserved.
 *
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.
 * 
 * This software consists of contributions made by many individuals, 
 * listed below:
 *
 * Author: 	Xabier Laiseca <xabier.laiseca@deusto.es>
 * 			David Ausín <david.ausin@deusto.es>
 */
package cbdp.server.contextreasoner.impl.contextmanager.online.model.wrappers;

import cbdp.server.contextreasoner.model.PrimitiveDatatypeProperty;
import cbdp.server.contextreasoner.model.exceptions.InvalidDatatypeException;

public class EagerSavingPrimitiveDatatypePropertyRuleLaunchingWrapper extends EagerSavingGenericPropertyRuleLaunchingWrapper<PrimitiveDatatypeProperty> implements PrimitiveDatatypeProperty
{
	@Override
	public boolean getBooleanValue() throws InvalidDatatypeException
	{
		return wrapped.getBooleanValue();
	}

	@Override
	public char getCharValue() throws InvalidDatatypeException
	{
		return wrapped.getCharValue();
	}

	@Override
	public double getDoubleValue() throws InvalidDatatypeException
	{
		return wrapped.getDoubleValue();
	}

	@Override
	public float getFloatValue() throws InvalidDatatypeException
	{
		return wrapped.getFloatValue();
	}

	@Override
	public int getIntValue() throws InvalidDatatypeException
	{
		return wrapped.getIntValue();
	}

	@Override
	public long getLongValue() throws InvalidDatatypeException
	{
		return wrapped.getLongValue();
	}

	@Override
	public String getStringValue() throws InvalidDatatypeException
	{
		return wrapped.getStringValue();
	}

	@Override
	public void setValue(boolean value) throws InvalidDatatypeException
	{
		wrapped.setValue(value);
		launchRulesIfNotInExecution();
	}

	@Override
	public void setValue(char value) throws InvalidDatatypeException
	{
		wrapped.setValue(value);
		launchRulesIfNotInExecution();
	}

	@Override
	public void setValue(double value) throws InvalidDatatypeException
	{
		wrapped.setValue(value);
		launchRulesIfNotInExecution();
	}

	@Override
	public void setValue(float value) throws InvalidDatatypeException
	{
		wrapped.setValue(value);
		launchRulesIfNotInExecution();
	}

	@Override
	public void setValue(int value) throws InvalidDatatypeException
	{
		wrapped.setValue(value);
		launchRulesIfNotInExecution();
	}

	@Override
	public void setValue(long value) throws InvalidDatatypeException
	{
		wrapped.setValue(value);
		launchRulesIfNotInExecution();
	}

	@Override
	public void setValue(String value) throws InvalidDatatypeException
	{
		wrapped.setValue(value);
		launchRulesIfNotInExecution();
	}

}
